package dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import pojo.User;

@Repository("loginDao")
@Mapper
public interface LoginDao {
	public User selectUser(@Param("userid")int userid,@Param("password")String password);
	public List<User>selectAll();
	public List<User>selectUserByName(@Param("username")String username);
	public int insertUser(User user);
	public int nextPrimaryKey();
	public int deleteUser(@Param("userid")int userid);
	public User selectUserById(int userid);
}
